<taglib name="mkrtags" />
<!--  功能操作区域  -->

<table width="100%"   cellpadding="0" cellspacing="0" >
  <tr>
    <td width="60%">
	    <span><input type="button"  onclick="add()" class="button1" title="增加数据" value="增加数据" /> </span>
	    <span><input type="button"  onclick="edit()" class="button1" title="编辑数据" value="编辑数据" /> </span>
	    <span><input type="button"  onclick="view()" class="button1" title="查看详细数据" value="查看详细" /> </span>
	    <span><input type="button"  onclick="del()" class="button1" title="删除数据" value="删除数据" /> </span>

		    <span>
			    <input type="button"  onclick="display('searchbox')" class="button1" title="搜索数据" value="搜索数据▼" />
			    <div class="searchbox" id="searchbox" style="display:none">
			        <table cellpadding="0" cellspacing="0">
			          <tr>
			            <td class="ewTableHeader">关键词:</td>
			            <td class="ewTableAltRow"><input id="searchkey" type="text"  name="searchkey"  value="{$searchkey}" /></td>
			          </tr>
			          <tr>
			          	<td class="ewTableHeader">条件:</td>
			            <td class="ewTableAltRow"><mkrtags:radio id="searchtype" name="searchtype"  outtable="Array" value="$searchtype" outfield="AND,OR" outkey="AND,OR" /></td>
			          </tr>
			          <tr>
			            <td colspan="2"  class="ewTableAltRow">
			            <input type="submit"   class="button1" value="搜索" />
			            <input type="button" name="delete" onclick="location.href='__URL__/index/'" class="button1" value="清空" />
			            </td>
			          </tr>
			        </table>
			    </div>
		    </span>

    </td>
  </tr>
</table>
<!-- 功能操作区域结束 -->
<!-- Myhtml 系统列表组件开始 -->
<table id="Conf_ad_List" class="list">
  <tr class="row" >
    <th width="8"> <input type="checkbox" id="check" onclick="CheckAll('Conf_ad_List')">
    </th>

    <th> <a class="titleth" href="javascript:AjaxSortBy('Conf_ad','ajaxlist','label','<php> echo getsorttype('label');</php>','Conf_ad_Grid')"  title="按照说明排序">说明
      <php> echo getsorttype('label',1);</php>
      </a> </th>

    <th> <a class="titleth" href="javascript:AjaxSortBy('Conf_ad','ajaxlist','files','<php> echo getsorttype('files');</php>','Conf_ad_Grid')"  title="按照文件排序">文件
      <php> echo getsorttype('files',1);</php>
      </a> </th>

    <th> <a class="titleth" href="javascript:AjaxSortBy('Conf_ad','ajaxlist','status','<php> echo getsorttype('status');</php>','Conf_ad_Grid')"  title="按照状态排序">状态
      <php> echo getsorttype('status',1);</php>
      </a> </th>

    <th> <a class="titleth" href="javascript:AjaxSortBy('Conf_ad','ajaxlist','types','<php> echo getsorttype('types');</php>','Conf_ad_Grid')"  title="按照类型排序">类型
      <php> echo getsorttype('types',1);</php>
      </a> </th>

    <th> <a class="titleth" href="javascript:AjaxSortBy('Conf_ad','ajaxlist','counttype','<php> echo getsorttype('counttype');</php>','Conf_ad_Grid')"  title="按照统计方式排序">统计方式
      <php> echo getsorttype('counttype',1);</php>
      </a> </th>

    <th> <a class="titleth" href="javascript:AjaxSortBy('Conf_ad','ajaxlist','settingtime','<php> echo getsorttype('settingtime');</php>','Conf_ad_Grid')"  title="按照设定日期排序">设定日期
      <php> echo getsorttype('settingtime',1);</php>
      </a> </th>

    <th> <a class="titleth" href="javascript:AjaxSortBy('Conf_ad','ajaxlist','starttime','<php> echo getsorttype('starttime');</php>','Conf_ad_Grid')"  title="按照开始日期排序">开始日期
      <php> echo getsorttype('starttime',1);</php>
      </a> </th>

    <th> <a class="titleth" href="javascript:AjaxSortBy('Conf_ad','ajaxlist','lasttime','<php> echo getsorttype('lasttime');</php>','Conf_ad_Grid')"  title="按照最后统计日期排序">最后统计日期
      <php> echo getsorttype('lasttime',1);</php>
      </a> </th>

    <th >操作区域</th>
  </tr>
  <php> if(isset($list)): </php>
  <php> $i = 0; </php>
  <php> if( count($list)==0 ) echo "" </php>
  <php> foreach($list as $key=>$list): </php>
  <php> ++$i;</php>
  <php> $mod = (($i % 2 )==0)</php>
  <php> if(($key%2)==0){ $tablesclass="ewTableAltRow";} else { $tablesclass="ewTableRow";} </php>
  <tr class="{$tablesclass}" onmouseover="ew_mouseover(this);" onmouseout="ew_mouseout(this);" onclick="ew_click(this);"  >
    <td><input type="checkbox" name="key"	value="{$list.id}"></td>

    <td title="说明"> <mkrtags:text id="label" name="label"  value="$list['label']"/> </td>

    <td title="文件"> <mkrtags:filedown id="files" name="files"  value="$list['files']"/> </td>

    <td title="状态"> <mkrtags:outtable id="status" name="status"  value="$list['status']" outtable="Array"  outfield="禁用状态,启用状态"  outkey="0,1"  outcondition=""  outorder=""  outadd="" /> </td>

    <td title="类型"> <mkrtags:outtable id="types" name="types"  value="$list['types']" outtable="Array"  outfield="FLASH广告,图片广告"  outkey="0,1"  outcondition=""  outorder=""  outadd="" /> </td>

    <td title="统计方式"> <mkrtags:outtable id="counttype" name="counttype"  value="$list['counttype']" outtable="Array"  outfield="只统计展示数据,只统计目标来源数据,统计展示和统计来源"  outkey="0,1,2"  outcondition=""  outorder=""  outadd="" /> </td>

    <td title="设定日期"> <mkrtags: id="settingtime" name="settingtime"  value="$list['settingtime']"/> </td>

    <td title="开始日期"> <mkrtags: id="starttime" name="starttime"  value="$list['starttime']"/> </td>

    <td title="最后统计日期"> <mkrtags: id="lasttime" name="lasttime"  value="$list['lasttime']"/> </td>

    <td>
    	<a href="javascript:edit('{$list.id}')" title="编辑本信息">编辑</a>
     	<a href="javascript:del('{$list.id}')" title="删除本信息">删除</a>
     	<a href="javascript:view('{$list.id}')" title="查看详细信息">详细</a>
    </td>
  </tr>
  <php> endforeach; </php>
  <php> endif; </php>
</table>
<!--Myhtml系统列表组件结束 -->
<!--  分页显示区域 -->
<div class="page">
  <table width="100%">
    <tr>
      <td align="left"></td>
      <td align="right">{$page}</td>
    </tr>
  </table>
</div>
<!--  分页显示区域结束 -->
